home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: in1.uu.net!world!mv!usenet
- From: ENGR@GSSI.MV.COM (Michael Furman)
- Subject: Re: void main() and other atrocities!
- Message-ID: <DM66ps.GIH@mv.mv.com>
- Mime-Version: 1.0
- Organization: GSSI
- Date: Fri, 2 Feb 1996 22:34:40 GMT
- References: <4eduaj$1aq@grouper.Exis.Net> <4em17r$shq@jaxnet.jaxnet.com> <4emub9$1mo@fountain.mindlink.net> <4epplj$egf@host-3.cyberhighway.net> <4erjn2INN38b@keats.ugrad.cs.ubc.ca>
- X-Newsreader: WinVN 0.93.10
- X-Nntp-Posting-Host: gssi.mv.com
-
- In article <4erjn2INN38b@keats.ugrad.cs.ubc.ca>, c2a192@ugrad.cs.ubc.ca
- says...
- > ........... snip .........
- >There is nothing with 'void main()'. It's not giverned by the ANSI standard,
- >first of all, because that is not an ANSI definition. An ANSI definiton
- would
- >be more like 'void main(void)'.
- >
- >You don't need main() to be defined has having any sort of return value
- unless
- >you plan to "return" out of it. If you use exit(0) like me, declaring the
- >function void is ok, since your function never returns.
-
- That is not exactly true. Just some compilers allow "void main(..)" as a
- language extension. But of cause it is not garanteed for any compiler.
-
- >
- >The antsy standard is _great_ for assuring me that my bike helmet is safe,
- mind
- >you.
- >--
- >
-
- --
- <<<<<<<< This is a copy of post to the newsgroup >>>>>>>>
- ---------------------------------------------------------------
- Michael Furman, (603)893-1109
- Geophysical Survey Systems, Inc. fax:(603)889-3984
- 13 Klein Drive - P.O. Box 97 engr@gssi.mv.com
- North Salem, NH 03073-0097 71543.1334@compuserve.com
- ---------------------------------------------------------------
-
-